-module(serial_tests).
-include_lib("eunit/include/eunit.hrl").
-import(serial,
	[treeToList/1, listToTree/1, tree0/0, tree1/0]).

leaf_test() ->
	?assertEqual(tree0(),
		listToTree(treeToList(tree0()))).

node_test() ->
	?assertEqual(tree1(),
		listToTree(treeToList(tree1()))).

